<!-- 编辑资料 -->
<template>
  <div class='edit'>
    <div class="top">
      <imageg class="img" src="#" alt="背景图" lazy-load='true'></imageg>
    </div>
    <div class="portrait">
      <div class="portrait-shell"></div>
      <div class="name">喜欢吃面的美妆主播</div>
    </div>
    <div class="text">
      <div class="left">每周六晚上6点准时直播，在这里你可以学到轻松化妆的技巧hgbjhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh</div>
      <div class="botton">详情</div>
    </div>
    <div class="add">
      <div class="name">成都市</div>
      <div class="id">ID：9589987523</div>
    </div>
    <div class="period-validity">
      <div class="shell">
        <div class="time">视频功能有效期截止2020/05/12 12:00:00</div>
        <div class="icon">
          <image class="img" src="#"></image>
        </div>
      </div>
    </div>
    <div class="card">
      <div class="shell" v-for="(item,index) in list" :key="index">
        <div class="left">
          <div class="img">
            <!-- <img class="imgs" src="#" alt="图片"> -->
          </div>
          <div class="instructions">
            <div class="name">眉笔的巧妙用法第二期</div>
            <div class="time">2020/02/25</div>
            <div class="bottom">
              <div class="isicon">
                <!-- <img src="#" alt="图标"> -->
              </div>
              <div class="number">235</div>
            </div>
          </div>
        </div>
        <div class="icon">
          <!-- <img class="img" src="#" alt="图标"> -->
        </div>
      </div>
    </div>
  </div>
</template>

<script>

export default {
  // import引入的组件需要注入到对象中才能使用
  components: {},
  // 接受父组件的传值
  props: {},

  data () {
    // 这里存放数据
    return {
      list: [1, 2, 3]
    }
  },
  // 监听属性 类似于data概念
  computed: {},
  // 监控data中的数据变化
  watch: {},
  // 方法集合
  methods: {

  },
  // 生命周期 - 创建完成（可以访问当前this实例）
  created () {

  },
  // 生命周期 - 挂载完成（可以访问DOM元素）
  mounted () {

  },
  // 生命周期 - 创建之前
  beforeCreate () { },
  // 生命周期 - 挂载之前
  beforeMount () { },
  // 生命周期 - 更新之前
  beforeUpdate () { },
  // 生命周期 - 更新之后
  updated () { },
  // 生命周期 - 销毁完成
  destroyed () { },
  // 如果页面有keep-alive缓存功能，这个函数会触发
  activated () { }
}
</script>
<style lang='scss' scoped>
//@import url(); 引入公共css类
.edit {
  .top {
    height: 60px;
    width: 100%;
    background-color: yellow;
    .img {
      width: 100%;
      height: 100%;
    }
  }
  .portrait {
    display: flex;
    position: relative;
    height: 40px;
    align-items: center;
    .portrait-shell {
      background-color: #f45;
      height: 60px;
      width: 60px;
      border-radius: 50%;
      position: absolute;
      top: -20px;
      left: 20px;
    }
    .name {
      margin-left: 90px;
      font-size: 15px;
      font-family: PingFang SC, PingFang SC-Bold;
      font-weight: 700;
      color: #222222;
    }
  }
  .text {
    display: flex;
    justify-content: space-between;
    padding: 10px 23px 0 20px;
    .left {
      width: 84%;
      font-size: 11px;
      font-family: PingFang SC, PingFang SC-Regular;
      font-weight: 400;
      text-align: left;
      color: #999999;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .botton {
      font-size: 11px;
      font-family: PingFang SC, PingFang SC-Regular;
      font-weight: 400;
      text-align: left;
      color: #4673f7;
      white-space: nowrap;
    }
  }
  .add {
    display: flex;
    font-size: 9px;
    font-family: PingFang SC, PingFang SC-Regular;
    font-weight: 400;
    text-align: left;
    color: #999999;
    line-height: 15px;
    padding: 10px 0 23px 20px;

    .name {
      height: 15px;
      background: #f2f3f7;
      border-radius: 2.5px;
      padding: 0 2.5px 0 2.5px;
    }
    .id {
      height: 15px;
      background: #f2f3f7;
      border-radius: 2.5px;
      margin-left: 10px;
      padding: 0 2.5px 0 2.5px;
    }
  }
  .period-validity {
    width: 100%;
    padding: 0 13px 0 20px;
    .shell {
      display: flex;
      justify-content: space-between;
      align-items: center;
      height: 30px;
      background: #ffebc4;
      border-radius: 2.5px;
      padding: 0 10px 0 10px;
      .time {
        font-size: 11px;
        font-family: PingFang SC, PingFang SC-Regular;
        font-weight: 400;
        color: #ff8e1d;
      }
      .icon {
        width: 10px;
        height: 15px;
        background-color: yellow;
        .img {
          width: 100%;
          height: 100%;
        }
      }
    }
  }
  .card {
    margin-top: 20px;
    .shell {
      height: 100px;
      padding: 0 23px 0 15px;
      border-top: 1px solid #999;
      display: flex;
      justify-content: space-between;
      align-items: center;
      .left {
        display: flex;
        .img {
          width: 80px;
          height: 70px;
          background-color: yellow;
          border-radius:2.5px;
        }
        .instructions {
          display: flex;
          flex-direction: column;
          justify-content: space-between;
          padding-left: 18px;
          .name {
            font-size: 15px;
            font-family: PingFang SC, PingFang SC-Bold;
            font-weight: 700;
            text-align: left;
            color: #222222;
            padding-top:5px ;
          }
          .time {
            font-size: 12px;
            font-family: PingFang SC, PingFang SC-Regular;
            font-weight: 400;
            text-align: left;
            color: #999999;
          }
          .bottom {
            display: flex;
            .isicon {
              width: 12px;
              height: 12px;
              background-color: yellow;
            }
            .number {
              font-size: 10px;
              font-family: PingFang SC, PingFang SC-Regular;
              font-weight: 400;
              text-align: left;
              color: #999999;
              margin-left: 5px;
            }
          }
        }
      }
      .icon {
        width: 10px;
        height: 15px;
        background-color: yellow;
      }
    }
  }
}
</style>